﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace CooStationsToolsNew
{
    /// <summary>
    /// MessageForm3.xaml 的交互逻辑
    /// </summary>
    public partial class MessageForm3 : Window
    {
        string str = null;
        public  bool flag = true;
        public int numflag = 0;
        public MessageForm3(string msgstr)
        {
            InitializeComponent();
            str = msgstr;
        }

        private void canBtn_Click(object sender, RoutedEventArgs e)
        {
            numflag = 0;
            flag = false;
            this.DialogResult = false;
            this.Close();
          
        }

        private void Border_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            this.DragMove();
        }

        private void lbtn_close_Click(object sender, RoutedEventArgs e)
        {
            numflag = 0;
            flag = false;
            this.DialogResult = false;
            this.Close();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            msglb.Content = str;
        }

        private void yesBtn_Click(object sender, RoutedEventArgs e)
        {
            numflag = 1;
            this.DialogResult = true;
            this.Close();
        }

        private void noBtn_Click(object sender, RoutedEventArgs e)
        {
            numflag = 2;
            this.DialogResult = false;
            this.Close();
        }
    }
}
